$(document).ready(function () {
                $(".login__footer_login").click(function () {
                    var userphone = $(".login__phone").val();
                    console.log(userphone);
                    var userpwd = $(".login__pwd").val();
                    console.log(userpwd);
                    $.ajax({
                        Type:"POST",
                        url:"data/login.php",
                        data:{uname:userphone,upwd:userpwd},
                        success:function (list) {
                            // console.log(arguments);
                            // console.log(list);
                            if(list.code===1){
                                location.href="index1.html";
                            }else if(list.code===2){
                               $(".login__content__error").addClass("login__content__error_active");
                               return;
                            }
                        },
                        error:function () {
                            alert("响应成功但有问题")
                        }
                    })
                });
        $(".login__footer_register").click(function () {
            location.href="register.html";
        });
        $(".login__footer_pwd").click(function () {
            location.href="";
        })
});